home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15240 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: alt.msdos.programmer,comp.lang.c,comp.lang.pascal.misc
  4. Subject: Re: typecasting preferences
  5. Date: Wed, 17 Apr 96 23:58:41 GMT
  6. Organization: none
  7. Message-ID: <829785521snz@genesis.demon.co.uk>
  8. References: <4l020g$i9j@srvr1.engin.umich.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4l020g$i9j@srvr1.engin.umich.edu>
  15.            hasdi@news-server.engin.umich.edu "HASDI RODZMANN HASHIM" writes:
  16.  
  17. >Hi guys! I think my earlier post got lost so here it is again.... This is
  18. >for a student compiler project of mine.... 
  19.  
  20. This is entirely down to what your compiler actually compiles (other
  21. than students!). If it is C use C cases, if it is Pascal use Pascal
  22. conversions. If it is something else use whatever fits the type system
  23. of the language. Pascal conversions wouldn't work at all well with complex
  24. C type declarations and may not even produce an unambiguous grammar.
  25.  
  26. >If you have a choice, do you want the parethesis pair over the caster
  27. >(C-style) or over the castee (Pascal-style)? eg...
  28.  
  29. I would use whatever is appropriate for the rest of the language.
  30.  
  31. -- 
  32. -----------------------------------------
  33. Lawrence Kirby | fred@genesis.demon.co.uk
  34. Wilts, England | 70734.126@compuserve.com
  35. -----------------------------------------
  36.